package com.ruoyi.yljf.controller.AuthApiController;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.security.annotation.Anonymous;
import com.ruoyi.yljf.domain.dto.PointLinkDTO;
import com.ruoyi.yljf.service.IArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 咨询文章Controller
 * 
 * @author metaee
 * @date 2025-02-13
 */
@Anonymous
@RestController
@RequestMapping("/api/common")
public class AuthCommonController extends BaseController {
    @Autowired
    private IArticleService articleService;

//    /** 点赞 */
//    @PostMapping(value = "pointLike")
//    public AjaxResult pointLike(@RequestBody PointLinkDTO dto) {
//        // 根据不同的点赞类型,对应赋值
////        articleService.pointLike(articleId);
//        return success();
//    }

    /** 转发 */
    @PutMapping(value = "forwarding/{articleId}")
    public AjaxResult forwarding(@PathVariable("articleId") Long articleId) {
        articleService.forwarding(articleId);
        return success();
    }

}
